package bean;

import java.math.BigInteger;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Size;

public class Kreditgeber {
    
    @Size(min=3, max=3, message=":: genau 3 Zeichen")
    private String name;
    
    @DecimalMin(value="1", message=":: muss positiv sein")
    private BigInteger summe = new BigInteger("0");
    
    public Kreditgeber() {
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the summe
     */
    public BigInteger getSumme() {
        return summe;
    }

    /**
     * @param summe the summe to set
     */
    public void setSumme(BigInteger summe) {
        this.summe = summe;
    }
}
